package com.dxf.sysadmin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 评价结果
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`evalute-result`")
@ApiModel(value="Evalute-result对象", description="评价结果")
public class EvaluteResult extends Model<EvaluteResult> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "评价任务")
    @TableField("taskId")
    private Long taskId;

    @ApiModelProperty(value = "被评价人")
    @TableField("teacherId")
    private Long teacherId;

    @ApiModelProperty(value = "评价类型")
    @TableField("typeId")
    private Long typeId;

    @ApiModelProperty(value = "得分")
    private Double score;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
